package com.clkj.zhonghui.pojo.points;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author 周佳润
 * @date 2024-09-11 11:33:23 
 */
@ApiModel( value ="t_zh_rebatePoints" )
@Table( name ="t_zh_rebatePoints" )
public class RebatePoints  implements Serializable {


	/**
	 * 主键
	 */
    @Id
   	@Column(name = "point_id" ,updatable = false)
	@ApiModelProperty( value="主键")
	private Integer pointId;

	/**
	 * 用户ID
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="用户ID")
	private Integer userId;

	/**
	 * 来源（用户ID）
	 */
   	@Column(name = "source" )
	@ApiModelProperty( value="来源（用户ID）")
	private Integer source;

	/**
	 * 积分值
	 */
   	@Column(name = "points" )
	@ApiModelProperty( value="积分值")
	private Double points;

	/**
	 * 订单ID
	 */
   	@Column(name = "order_num" )
	@ApiModelProperty( value="订单ID")
	private String orderNum;

	/**
	 * 获得/消耗积分的日期
	 */
   	@Column(name = "earned_date" )
	@ApiModelProperty( value="获得/消耗积分的日期")
	private String earnedDate;

	/**
	 * 积分类型(0为支付消耗积分，1下级返利积分。2为赠送消耗积分，3为赠与添加积分)
	 */
   	@Column(name = "point_type" )
	@ApiModelProperty( value="积分类型(0为支付消耗积分，1下级返利积分。2为赠送消耗积分，3为赠与添加积分)")
	private Integer pointType;

	/**
	 * 转出给用户的ID
	 */
   	@Column(name = "export_id" )
	@ApiModelProperty( value="转出给用户的ID")
	private Integer exportId;

	/**
	 * 过期时间
	 */
   	@Column(name = "expiry_date" )
	@ApiModelProperty( value="过期时间")
	private String expiryDate;

	/**
	 * 剩余积分
	 */
   	@Column(name = "surplus_points" )
	@ApiModelProperty( value="剩余积分")
	private Double surplusPoints;

    @Transient
    private String userName;


    @Transient
    private String sourcename;


    @Transient
    private String exportName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSourcename() {
        return sourcename;
    }

    public void setSourcename(String sourcename) {
        this.sourcename = sourcename;
    }

    public String getExportName() {
        return exportName;
    }

    public void setExportName(String exportName) {
        this.exportName = exportName;
    }

  public Integer getPointId() {
    return pointId;
  }

  public void setPointId(Integer pointId) {
    this.pointId = pointId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getSource() {
    return source;
  }

  public void setSource(Integer source) {
    this.source = source;
  }


  public Double getPoints() {
    return points;
  }

  public void setPoints(Double points) {
    this.points = points;
  }


  public String getOrderNum() {
    return orderNum;
  }

  public void setOrderNum(String orderNum) {
    this.orderNum = orderNum;
  }


  public String getEarnedDate() {
    return earnedDate;
  }

  public void setEarnedDate(String earnedDate) {
    this.earnedDate = earnedDate;
  }


  public Integer getPointType() {
    return pointType;
  }

  public void setPointType(Integer pointType) {
    this.pointType = pointType;
  }


  public Integer getExportId() {
    return exportId;
  }

  public void setExportId(Integer exportId) {
    this.exportId = exportId;
  }


  public String getExpiryDate() {
    return expiryDate;
  }

  public void setExpiryDate(String expiryDate) {
    this.expiryDate = expiryDate;
  }


  public Double getSurplusPoints() {
    return surplusPoints;
  }

  public void setSurplusPoints(Double surplusPoints) {
    this.surplusPoints = surplusPoints;
  }

}
